package com.haima.ziliao.domain;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 年级管理对象 p_nianji
 * 
 * @author hima
 * @date 2024-10-21
 */
public class PNianji implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** PID */
    @Excel(name = "PID")
    private Long pid;

    /** 年级 */
    @Excel(name = "年级")
    private String name;

    /** 包含学科 */
    @Excel(name = "包含学科")
    private String xks;

    @TableField(exist = false)
    private List<PXueke> xueke;

    public List<PXueke> getXueke() {
        return xueke;
    }

    public void setXueke(List<PXueke> xueke) {
        this.xueke = xueke;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setXks(String xks) 
    {
        this.xks = xks;
    }

    public String getXks() 
    {
        return xks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("xks", getXks())
            .toString();
    }
}
